<?php include("function.php"); ?>
<?php
header("Content-Type: text/html;charset=utf-8");
$servername = "localhost";
$username = "root";
$password = "root";
$dbname = "data";
// 创建连接
$conn = new mysqli($servername, $username, $password, $dbname);
// 检测连接
if ($conn->connect_error) {
    die("连接失败: " . $conn->connect_error);
}
$conn->query("SET NAMES UTF8");
//  $_GET['postname']

?>
<!DOCTYPE html>
<!-- saved from url=(0042)http://bbs.pcbeta.com/forum-surface-1.html -->
<html>

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

    <title>主题帖</title>
    <meta name="baidu-site-verification" content="a5v4fMZJjX0mruVT">
    <meta name="keywords" content="Surface 微软平板电脑论坛">
    <meta name="description" content="Surface 微软平板电脑论坛 ,远景论坛 - 微软极客社区">
    <meta name="copyright" content="2005-2014 PCBETA TEAM.">
    <meta name="application-name" content="远景论坛">
    <meta name="msapplication-tooltip" content="远景论坛">
    <meta name="MSSmartTagsPreventParsing" content="True">
    <meta http-equiv="MSSmartTagsPreventParsing" content="YES">
    <meta http-equiv="MSThemeCompatible" content="Yes">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta property="wb:webmaster" content="3ee8c38391d2c42e">
    <meta baidu-gxt-verify-token="79dc0c1c2bb4111ea1e9ee0dac6871fd">
    <link rel="shortcut icon" href="http://www.pcbeta.com/favicon.ico" type="image/vnd.microsoft.icon">
    <link rel="icon" href="http://www.pcbeta.com/favicon.ico" type="image/vnd.microsoft.icon">
    <link rel="shortcut icon" href="http://www.pcbeta.com/favicon.ico" type="image/x-icon">
    <link rel="apple-touch-icon" href="http://bbs.pcbeta.com/static/image/apple-touch-icon/apple-touch-icon.png">
    <link rel="apple-touch-icon" sizes="57x57" href="http://bbs.pcbeta.com/static/image/apple-touch-icon/apple-touch-icon-57x57.png">
    <link rel="apple-touch-icon" sizes="72x72" href="http://bbs.pcbeta.com/static/image/apple-touch-icon/apple-touch-icon-72x72.png">
    <link rel="apple-touch-icon" sizes="76x76" href="http://bbs.pcbeta.com/static/image/apple-touch-icon/apple-touch-icon-76x76.png">
    <link rel="apple-touch-icon" sizes="114x114" href="http://bbs.pcbeta.com/static/image/apple-touch-icon/apple-touch-icon-114x114.png">
    <link rel="apple-touch-icon" sizes="120x120" href="http://bbs.pcbeta.com/static/image/apple-touch-icon/apple-touch-icon-120x120.png">
    <link rel="apple-touch-icon" sizes="144x144" href="http://bbs.pcbeta.com/static/image/apple-touch-icon/apple-touch-icon-144x144.png">
    <link rel="apple-touch-icon" sizes="152x152" href="http://bbs.pcbeta.com/static/image/apple-touch-icon/apple-touch-icon-152x152.png">
    <!--<base href="http://bbs.pcbeta.com/">-->
    <!-- base href="file:///C:/phpstudy_pro/WWW/" -->
    <link rel="stylesheet" type="text/css" href="postpc_files/style_6_common.css">
    <link rel="stylesheet" type="text/css" href="postpc_files/style_6_forum_forumdisplay.css">
    <script async="" src="//www.google-analytics.com/analytics.js"></script>
    <script type="text/javascript" async="" src="postpc_files/auto_dup.txt"></script>
    <script async="" src="postpc_files/analytics.js"></script>
    <script src="postpc_files/jquery.js" type="text/javascript"></script>
    <script type="text/javascript">
        /*if(top.location!==self.location){top.location=self.location;}*/
        var STYLEID = '6',
            STATICURL = 'static/',
            STATIC_CSS = 'http://www.pcbeta.com/',
            STATIC_IMG = 'http://www.pcbeta.com//',
            STATIC_JS = 'http://www.pcbeta.com/data/cache/',
            IMGDIR = 'http://www.pcbeta.com///static/image/pcbeta',
            VERHASH = 'Vz5',
            charset = 'gbk',
            discuz_uid = '0',
            cookiepre = 'jqCP_887f_',
            cookiedomain = 'pcbeta.com',
            cookiepath = '/',
            showusercard = '0',
            attackevasive = '0',
            disallowfloat = 'login|newthread|viewvote|tradeorder|activity|debate|task',
            creditnotice = ',,,,',
            defaultstyle = '',
            REPORTURL = 'aHR0cDovL2Jicy5wY2JldGEuY29tL2ZvcnVtLXN1cmZhY2UtMS5odG1s',
            SITEURL = 'http://bbs.pcbeta.com/',
            JSPATH = 'http://www.pcbeta.com/data/cache/';
        jia_title = 'Surface+%CE%A2%C8%ED%C6%BD%B0%E5%B5%E7%C4%D4%C2%DB%CC%B3';
    </script>
    <script src="postpc_files/common.js" type="text/javascript"></script>
    <link rel="archives" title="远景论坛 - 微软极客社区" href="http://bbs.pcbeta.com/archiver/">
    <link rel="alternate" type="application/rss+xml" title="远景论坛 - 微软极客社区 - " href="http://bbs.pcbeta.com/forum.php?mod=rss&amp;fid=513&amp;auth=0">
    <script src="postpc_files/forum.js" type="text/javascript"></script>
    <link rel="alternate" type="application/rss+xml" title="远景论坛 - 微软极客社区 - " href="http://bbs.pcbeta.com/forum.php?mod=rss&amp;fid=513&amp;auth=0">
</head>

<body id="nv_forum" class="pg_forumdisplay" onkeydown="if(event.keyCode==27) return false;">
    <div id="BAIDU_DUP_fp_wrapper" style="position: absolute; left: -1px; bottom: -1px; z-index: 0; width: 0px; height: 0px; overflow: hidden; visibility: hidden; display: none;">
        <iframe id="BAIDU_DUP_fp_iframe" src="postpc_files/o.html" style="width: 0px; height: 0px; visibility: hidden; display: none;"></iframe></div>
    <div id="append_parent"></div>
    <div id="ajaxwaitid"></div>
    <div id="toptb" class="cl">
        <div class="wp">
            <!--[template member/login_simple]-->
            <ul class="y pb_login">
                <?php
                $temp_user = get_session_user();
                if ($temp_user > 0) {
                ?>
                    <li><a>
                            <?php
                            echo (getuser_name($temp_user));
                            ?>
                        </a>
                    </li>
                    <li><a href="unlogin.php">退出</a></li>
                <?php
                        } else { ?>
                    <li><a href="login.php">登录</a></li>
                    <li><a href="zhuce.php">注册</a></li>
                <?php } ?>

            </ul>
        </div>
    </div>


    <div id="qmenua_menu" class="p_pop blk" style="display: none;">
        <div class="ptm pbw hm">
            请 <a href="javascript:;" class="xi2" onclick="lsSubmit()"><strong>登录</strong></a> 后使用快捷导航<br>没有帐号？<a href="http://bbs.pcbeta.com/member.php?mod=register" class="xi2 xw1">注册</a>
        </div>
    </div>
    <div id="hd">
        <div class="wp">
            <div class="hdc cl">
                <h2><a href="http://bbs.pcbeta.com/" title="远景论坛 - 微软极客社区"></a> </h2>

                <div style="float:left;margin-left:15px;"></div>
            </div>
            <div id="mu" class="cl">
            </div>
        </div>
    </div>
    <div id="wp" class="wp cl">
        <style type="text/css">
            .wDMPRV {
                padding: 9px;
                width: 980px;
                height: 467px;
                overflow: hidden;
                border: 1px solid #cdcdcd;
                background: white;
            }

            .mxDLO {
                margin: 0 0 10px 0;
                height: 169px;
                padding-top: 10px;
                border-top: 1px solid #cdcdcd;
            }

            .cdyN {
                float: left;
                margin: 0 4px 10px 0;
                padding: 1px;
                width: 468px;
                height: 60px;
                border: 9px solid #EDEEF0;
                background: #fff;
            }

            .djuzA {
                float: left;
                margin-bottom: 10px;
                padding: 1px;
                width: 468px;
                height: 60px;
                border: 9px solid #EDEEF0;
                background: #fff;
            }

            .elwzCKV {
                float: left;
                margin: 0;
                padding: 1px;
                width: 960px;
                height: 60px;
                border: 9px solid #EDEEF0;
                background: #fff;
                overflow: hidden;
            }
        </style>

        <ul id="scbar_type_menu" class="p_pop" style="display: none;">
            <li><a href="javascript:;" rel="curforum" class="curtype">本版</a></li>
            <li><a href="javascript:;" rel="user">用户</a></li>
        </ul>
        <script type="text/javascript">
            initSearchmenu('scbar');
        </script>



        <!--[diy=diynavtop]-->
        <div id="diynavtop" class="area"></div>
        <!--[/diy]-->
        <!-- 
<div class="wp none">
<!--[diy=diy1]-- ><div id="diy1" class="area"></div><!--[/diy]-- >
</div>

-->
        <div class="boardnav">
            <div id="ct" class="wp cl">

                <div class="mn">
                    <div class="drag">
                        <!--[diy=diy4]-->
                        <div id="diy4" class="area"></div>
                        <!--[/diy]-->
                    </div>
                    <div id="pgt" class="bw0 pgs cl bn">
                        <div class="pg"><strong>1</strong><a href="http://bbs.pcbeta.com/forum-surface-2.html">2</a><a href="http://bbs.pcbeta.com/forum-surface-3.html">3</a><a href="http://bbs.pcbeta.com/forum-surface-4.html">4</a><a href="http://bbs.pcbeta.com/forum-surface-5.html">5</a><a href="http://bbs.pcbeta.com/forum-surface-6.html">6</a><a href="http://bbs.pcbeta.com/forum-surface-7.html">7</a><a href="http://bbs.pcbeta.com/forum-surface-8.html">8</a><a href="http://bbs.pcbeta.com/forum-surface-9.html">9</a><a href="http://bbs.pcbeta.com/forum-surface-10.html">10</a><a href="http://bbs.pcbeta.com/forum-surface-129.html" class="last">... 129</a><a href="http://bbs.pcbeta.com/forum-surface-2.html" class="nxt">下一页</a></div><span class="pgb y"><a href="http://bbs.pcbeta.com/forum.php">返&nbsp;回</a></span>
                        <a href="upload.php?type=0" id="newspecial" title="发表新帖">发表新帖</a>
                    </div>
                    <div id="threadlist" class="tl bm bmw">
                        <div class="th">
                            <table cellspacing="0" cellpadding="0">
                                <tbody>
                                    <tr>
                                        <th colspan="2">
                                            <div class="tf">
                                                <span id="atarget" onclick="setatarget(1)" class="y" title="在新窗口中打开帖子">新窗</span>
                                                筛选:
                                                <a id="filter_special" href="javascript:;" class="showmenu xi2" onclick="showMenu(this.id)">
                                                    全部主题</a>
                                                <a id="filter_dateline" href="javascript:;" class="showmenu xi2" onclick="showMenu(this.id)">
                                                    全部时间</a>
                                                排序:
                                                <a id="filter_orderby" href="javascript:;" class="showmenu xi2" onclick="showMenu(this.id)">
                                                    最后发表</a><span class="pipe">|</span><a href="http://bbs.pcbeta.com/forum.php?mod=forumdisplay&amp;fid=513&amp;filter=digest&amp;digest=1" class="xi2">精华</a><span class="pipe">|</span><a href="http://bbs.pcbeta.com/forum.php?mod=forumdisplay&amp;fid=513&amp;filter=recommend&amp;orderby=recommends&amp;recommend=1" class="xi2">推荐</a></div>
                                        </th>
                                        <td class="by">作者</td>
                                        <td class="num">回复/查看</td>
                                        <td class="by">最后发表</td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                        <div class="bm_c">
                            <script type="text/javascript">
                                var lasttime = 1572338781;
                            </script>
                            <div id="forumnew" style="display:none"></div>
                            <form method="post" autocomplete="off" name="moderate" id="moderate" action="http://bbs.pcbeta.com/forum.php?mod=topicadmin&amp;action=moderate&amp;fid=513&amp;infloat=yes&amp;nopost=yes">
                                <input type="hidden" name="formhash" value="19bd344a">
                                <input type="hidden" name="listextra" value="page%3D1">
                                <table summary="forum_513" cellspacing="0" cellpadding="0">

                                    </tbody>
                                    <?php
                                    $sql = "SELECT * FROM mainpost ";
                                    $result = $conn->query($sql);
                                    if ($result->num_rows > 0) {
                                        // 输出数据
                                        while ($row = $result->fetch_assoc()) {
                                    ?>
                                            <tbody id="normal">
                                                <tr>
                                                    <td class="icn">
                                                        <a href="detail.php?id=<?php echo ($row["Id"]); ?>" title="有新回复 - 新窗口打开" target="_blank">
                                                            <img src="postpc_files/folder_new.png">
                                                        </a>
                                                    </td>
                                                    <th class="new">
                                                        <a href="detail.php?id=<?php echo ($row["Id"]); ?>" onclick="atarget(this)" class="xst"><?php echo ($row["topic"]); ?></a>
                                                        <a href="detail.php?id=<?php echo ($row["Id"]); ?>" class="xi1">New</a>
                                                    </th>
                                                    <td class="by">
                                                        <cite>
                                                            <a href="http://i.pcbeta.com/space-uid-1991236.html" c="1"><?php echo (getuser_name($row['userid'])); ?></a></cite>
                                                        <em><span><?php echo ($row["posttime"]); ?></span></em>
                                                    </td>
                                                    <td class="num"><a href="http://bbs.pcbeta.com/viewthread-1831249-1-1.html" class="xi2"><?php echo (getpost_num($row["Id"])); ?></a><em></em></td>
                                                    <td class="by">
                                                        <cite><a href="http://i.pcbeta.com/space-username-%B4%BA%B3%C7.html" c="1"></a></cite>
                                                        <em><a href="http://bbs.pcbeta.com/forum.php?mod=redirect&amp;tid=1831249&amp;goto=lastpost#lastpost">
                                                            </a></em>
                                                    </td>
                                                </tr>
                                            </tbody>
                                    <?php

                                                                                                                                            }
                                                                                                                                        } else {
                                                                                                                                            echo "0 结果";
                                                                                                                                        }
                                    ?>
                                </table><!-- end of table "forum_G[fid]" branch 1/3 -->
                            </form>
                        </div>
                    </div>
                    <div id="filter_special_menu" class="p_pop" style="display:none" change="location.href='forum.php?mod=forumdisplay&amp;fid=513&amp;filter='+$('filter_special').value">
                        <ul>
                            <li><a href="http://bbs.pcbeta.com/forum-surface-1.html">全部主题</a></li>
                            <li><a href="http://bbs.pcbeta.com/forum.php?mod=forumdisplay&amp;fid=513&amp;filter=specialtype&amp;specialtype=poll">投票</a>
                            </li>
                        </ul>
                    </div>
                    <div id="filter_dateline_menu" class="p_pop" style="display:none">
                        <ul>
                            <li><a href="http://bbs.pcbeta.com/forum.php?mod=forumdisplay&amp;fid=513&amp;orderby=lastpost&amp;filter=dateline">全部时间</a>
                            </li>
                            <li><a href="http://bbs.pcbeta.com/forum.php?mod=forumdisplay&amp;fid=513&amp;orderby=lastpost&amp;filter=dateline&amp;dateline=86400">一天</a>
                            </li>
                            <li><a href="http://bbs.pcbeta.com/forum.php?mod=forumdisplay&amp;fid=513&amp;orderby=lastpost&amp;filter=dateline&amp;dateline=172800">两天</a>
                            </li>
                            <li><a href="http://bbs.pcbeta.com/forum.php?mod=forumdisplay&amp;fid=513&amp;orderby=lastpost&amp;filter=dateline&amp;dateline=604800">一周</a>
                            </li>
                            <li><a href="http://bbs.pcbeta.com/forum.php?mod=forumdisplay&amp;fid=513&amp;orderby=lastpost&amp;filter=dateline&amp;dateline=2592000">一个月</a>
                            </li>
                            <li><a href="http://bbs.pcbeta.com/forum.php?mod=forumdisplay&amp;fid=513&amp;orderby=lastpost&amp;filter=dateline&amp;dateline=7948800">三个月</a>
                            </li>
                        </ul>
                    </div>
                    <div id="filter_orderby_menu" class="p_pop" style="display:none">
                        <ul>
                            <li><a href="http://bbs.pcbeta.com/forum-surface-1.html">默认排序</a></li>
                            <li><a href="http://bbs.pcbeta.com/forum.php?mod=forumdisplay&amp;fid=513&amp;filter=author&amp;orderby=dateline">发帖时间</a>
                            </li>
                            <li><a href="http://bbs.pcbeta.com/forum.php?mod=forumdisplay&amp;fid=513&amp;filter=reply&amp;orderby=replies">回复/查看</a>
                            </li>
                            <li><a href="http://bbs.pcbeta.com/forum.php?mod=forumdisplay&amp;fid=513&amp;filter=reply&amp;orderby=views">查看</a>
                            </li>
                            <li><a href="http://bbs.pcbeta.com/forum.php?mod=forumdisplay&amp;fid=513&amp;filter=lastpost&amp;orderby=lastpost">最后发表</a>
                            </li>
                            <li><a href="http://bbs.pcbeta.com/forum.php?mod=forumdisplay&amp;fid=513&amp;filter=heat&amp;orderby=heats">热门</a>
                            </li>
                            <ul>
                            </ul>
                        </ul>
                    </div>

                    <div class="bm bw0 pgs cl">
                        <div class="pg"><strong>1</strong><a href="http://bbs.pcbeta.com/forum-surface-2.html">2</a><a href="http://bbs.pcbeta.com/forum-surface-3.html">3</a><a href="http://bbs.pcbeta.com/forum-surface-4.html">4</a><a href="http://bbs.pcbeta.com/forum-surface-5.html">5</a><a href="http://bbs.pcbeta.com/forum-surface-6.html">6</a><a href="http://bbs.pcbeta.com/forum-surface-7.html">7</a><a href="http://bbs.pcbeta.com/forum-surface-8.html">8</a><a href="http://bbs.pcbeta.com/forum-surface-9.html">9</a><a href="http://bbs.pcbeta.com/forum-surface-10.html">10</a><a href="http://bbs.pcbeta.com/forum-surface-129.html" class="last">... 129</a><a href="http://bbs.pcbeta.com/forum-surface-2.html" class="nxt">下一页</a></div><span class="pgb y"><a href="http://bbs.pcbeta.com/forum.php">返&nbsp;回</a></span>
                        <a href="upload.php?type=0" id="newspecial" title="发表新帖">发表新帖</a>
                    </div>
                    <!--[diy=diyfastposttop]-->
                    <div id="diyfastposttop" class="area"></div>
                    <!--[/diy]-->

                    <!--[diy=diyforumdisplaybottom]-->
                    <div id="diyforumdisplaybottom" class="area"></div>
                    <!--[/diy]-->
                </div>

            </div>
        </div>
        <script type="text/javascript">
            document.onkeyup = function(e) {
                keyPageScroll(e, 0, 1, 'forum.php?mod=forumdisplay&fid=513&filter=&orderby=lastpost&', 1);
            }
        </script>
        <script type="text/javascript">
            checkForumnew_handle = setTimeout(function() {
                checkForumnew(513, lasttime);
            }, checkForumtimeout);
        </script>

        <div class="wp mtn">
            <!--[diy=diy3]-->
            <div id="diy3" class="area"></div>
            <!--[/diy]-->
        </div>
        <div style="margin:0 auto;width:1000px;"></div>
    </div>

    <div id="g_upmine_menu" class="tip tip_3" style="display:none;">
        <div class="tip_c">
            积分 0, 距离下一级还需 积分
        </div>
        <div class="tip_horn"></div>
    </div>
    <span id="scrolltop" onclick="window.scrollTo('0','0')" style="left: auto; right: 0px; visibility: hidden;">回顶部</span>
    <script type="text/javascript">
        _attachEvent(window, 'scroll', function() {
            showTopLink();
        });
    </script>
    <div class="ftbg">
        <div id="ft" class="wp cl">
            <div class="pb_ft">
                <ul>
                    <li class="ft_nv1"><a href="javascript:void(0);" target="_blank">商务合作</a></li>
                    <li class="ft_nv2"><a href="mailto:pcbeta.service@pcbeta.com" onclick="setCopy('pcbeta'+'.'+'service'+'@'+'pcbeta'+'.'+'com', '复制成功');return false;">信息举报</a>
                    </li>
                    <li class="ft_nv4"><a href="http://bbs.pcbeta.com/viewthread-1050588-1-1.html" target="_blank">职位招聘</a></li>
                    <li class="ft_nv4"><a href="mailto:pcbeta.service@pcbeta.com" target="_blank">联系我们</a></li>
                </ul>
            </div>
            Copyright (C) 2005-2019 pcbeta.com, All rights reserved<br>
            Powered by Discuz!&nbsp;&nbsp;<a href="http://www.miitbeian.gov.cn/" target="_blank">苏ICP备17027154号</a><br>
            请勿发布违反中华人民共和国法律法规的言论，会员观点不代表远景论坛官方立场。<br>
            <a href="http://www.pcbeta.com/" title="远景在线" target="_blank">远景在线</a> | <a href="http://bbs.pcbeta.com/" title="远景论坛" target="_blank">远景论坛</a> | <a href="http://mac.pcbeta.com/" title="苹果论坛" target="_blank">苹果论坛</a> | <a href="http://bbs.pcbeta.com/forum-win10-1.html" title="Win10论坛" target="_blank">Win10论坛</a> | <a href="http://bbs.pcbeta.com/forum-windows8-1.html" title="Win8论坛" target="_blank">Win8论坛</a> | <a href="http://bbs.pcbeta.com/forum-windows7-1.html" title="Win7论坛" target="_blank">Win7论坛</a> | <a href="http://bbs.pcbeta.com/forum-windowsphone-1.html" title="Windows Phone论坛" target="_blank">WP论坛</a> | <a href="http://bbs.pcbeta.com/forum-518-1.html" title="Office论坛" target="_blank">Office论坛</a> | <a href="http://we.poppur.com/" title="电脑硬件" target="_blank">电脑硬件</a> | <a href="http://www.rayyo.com/" title="安卓软件" target="_blank">安卓软件</a>
        </div>
    </div>
    <style type="text/css"></style>
    <script type="text/javascript">
        var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
        document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F76c941eab16e9b48cd0fb4a6d9482a4f' type='text/javascript'%3E%3C/script%3E"));
    </script>
    <script src="postpc_files/h.txt" type="text/javascript"></script>
    <script src="postpc_files/h.js" type="text/javascript"></script>
    <script>
        (function(i, s, o, g, r, a, m) {
            i['GoogleAnalyticsObject'] = r;
            i[r] = i[r] || function() {
                (i[r].q = i[r].q || []).push(arguments)
            }, i[r].l = 1 * new Date();
            a = s.createElement(o),
                m = s.getElementsByTagName(o)[0];
            a.async = 1;
            a.src = g;
            m.parentNode.insertBefore(a, m)
        })(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
        ga('create', 'UA-57086375-1', 'auto');
        ga('send', 'pageview');
    </script>
    <script src="postpc_files/ggk.js" type="text/javascript"></script>



</body>
<div id="translate-button" style="background-color: white; box-shadow: rgb(221, 221, 221) 0px 0px 2px 2px; display: none;"><img src="">
</div>

</html>